#include "HiranipraShared.h"

#include "Net/NetBase.h"

#ifndef _SHARED_NET_NETCLIENT_H_
#define _SHARED_NET_NETCLIENT_H_

namespace Hiranipra {
	namespace Net {

		class NetClient : implements NetBase
		{
		public:
			NetClient();
			virtual ~NetClient();

			bool Connect( const Address& address, uint8 channelCount );

		protected:
			virtual void OnConnect( ENetEvent& ev );
			virtual void OnDisconnect( ENetEvent& ev );

		private:
			Peer*		_serverPeer;
			Address		_serverAddress;
		};

	}
}

#endif // _SHARED_NET_NETCLIENT_H_
